import request from '@/utils/request'

// 查询报价单管理列表
export function listQuotation(params,data) {
  return request({
    url: '/system/quotation/selectAllQuotationSys',
    method: 'post',
    timeout: 60000,
    params,
    data
  })
}

// 查询报价单管理详细
export function getQuotation(id) {
  return request({
    url: '/system/quotation/' + id,
    method: 'get'
  })
}

// 新增报价单管理
export function addQuotation(data) {
  return request({
    url: '/system/quotation',
    method: 'post',
    data: data
  })
}

// 修改报价单管理
export function updateQuotation(data) {
  return request({
    url: '/system/quotation',
    method: 'put',
    data: data
  })
}

// 删除报价单管理
export function delQuotation(id) {
  return request({
    url: '/system/quotation/' + id,
    method: 'delete'
  })
}

// 查看坞修报价
export function viewDockOuotation(params) {
  return request({
    url: '/system/quotation/viewDockOuotation',
    method: 'get',
    params
  })
}

// 查看采购报价
export function viewProcureOuotation(params) {
  return request({
    url: '/system/quotation/viewProcureOuotation',
    method: 'get',
    params
  })
}

// 查看外协报价
export function viewAssistOuotation(params) {
  return request({
    url: '/system/quotation/viewAssistOuotation',
    method: 'get',
    params
  })
}
